package com.loongtech.bi.entity.system;

import javax.persistence.*;
import java.io.Serializable;

@Entity
@Table(name = "bi_advconfig")
public class EntityAdvConfig implements Serializable {
	private static final long serialVersionUID = 1L;
	@Id
	private String id;
    // 游戏名称
    @Transient
    private String gameName;
    // 游戏id
    @Column(columnDefinition = "int(11)")
    private Integer gameId;
	@Column(columnDefinition = "varchar(255) NOT NULL default ''")
	private String affiliation;
	@Column(columnDefinition = "varchar(255) NOT NULL default ''")
	private String actName;
	@Column(columnDefinition = "varchar(255) NOT NULL default ''")
	private String channelName;
	@Column(columnDefinition = "varchar(255) NOT NULL default ''")
	private String agent;
	@Column(columnDefinition = "varchar(255) NOT NULL default ''")
	private String platform;
	@Column(columnDefinition = "varchar(255) NOT NULL default ''")
	private String paytype;
	@Column(columnDefinition = "varchar(255) NOT NULL default ''")
	private String advPosition;

	public EntityAdvConfig() {
		super();
	}

	public EntityAdvConfig(String id) {
		this.id = id;
	}

	public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id = id;
	}

	public String getAffiliation() {
		return affiliation;
	}

	public void setAffiliation(String affiliation) {
		this.affiliation = affiliation;
	}

	public String getActName() {
		return actName;
	}

	public void setActName(String actName) {
		this.actName = actName;
	}

	public String getChannelName() {
		return channelName;
	}

	public void setChannelName(String channelName) {
		this.channelName = channelName;
	}

	public String getAgent() {
		return agent;
	}

	public void setAgent(String agent) {
		this.agent = agent;
	}

	public String getPlatform() {
		return platform;
	}

	public void setPlatform(String platform) {
		this.platform = platform;
	}

	public String getPaytype() {
		return paytype;
	}

	public void setPaytype(String paytype) {
		this.paytype = paytype;
	}

	public String getAdvPosition() {
		return advPosition;
	}

    public String getGameName() {
        return gameName;
    }

    public void setGameName(String gameName) {
        this.gameName = gameName;
    }

    public Integer getGameId() {
        return gameId;
    }

    public void setGameId(Integer gameId) {
        this.gameId = gameId;
    }

    public void setAdvPosition(String advPosition) {
		this.advPosition = advPosition;
	}

    @Override
    public String toString() {
        return "EntityAdvConfig{" +
                "id='" + id + '\'' +
                ", gameName='" + gameName + '\'' +
                ", gameId=" + gameId +
                ", affiliation='" + affiliation + '\'' +
                ", actName='" + actName + '\'' +
                ", channelName='" + channelName + '\'' +
                ", agent='" + agent + '\'' +
                ", platform='" + platform + '\'' +
                ", paytype='" + paytype + '\'' +
                ", advPosition='" + advPosition + '\'' +
                '}';
    }

    public static class K {
		public static final String id = "id";
		public static final String affiliation = "affiliation";
		public static final String actName = "actName";
		public static final String channelName = "channelName";
		public static final String agent = "agent";
		public static final String platform = "platform";
		public static final String paytype = "paytype";
		public static final String advPosition = "advPosition";

		public static java.util.List<String> toList() {
			java.util.List<String> list = new java.util.ArrayList<>();
			list.add(id);
			list.add(affiliation);
			list.add(actName);
			list.add(channelName);
			list.add(agent);
			list.add(platform);
			list.add(paytype);
			list.add(advPosition);
			return list;
		}
	}
}
